package kr.co.dcinside.agitater.reader;

import java.io.IOException;
import java.io.UnsupportedEncodingException;


public abstract class GalleryReader
{
    public abstract void refresh();


    public GalleryReader( String location )
        throws UnsupportedEncodingException,
            IOException
    {
        for ( int page = 1; page < 10; page++ )
        {
            // String pageLo
            location = location + "&page=" + page;
            new PageReader()
            {

                @Override
                void refresh()
                {
                    GalleryReader.this.refresh();

                }
            }.read( location );
        }
    }
}
